//
//  HuYuSealed.h
//  HuYu
//
//  Created by Macbook on 6/12/16.
//  Copyright © 2016年 huyu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface HuYuSealed : NSObject
//创建textField,无图片，无密码。
+(UITextField *)createTextFieldFrame:(CGRect )frame backgroundColor:(UIColor*)color placeholder:(NSString *)str pColor:(UIColor*)pcolor clearsOnBeginEditing:(BOOL)clearsOnBeginEditing font:(CGFloat)font clearButtonMode:(UITextFieldViewMode)mode textClolr:(UIColor*)tColor;

+(UITextField *)CReateTextFieldFrame:(CGRect )frame placeholder:(NSString *)str pColor:(UIColor*)pcolor font:(CGFloat)font clearButtonMode:(UITextFieldViewMode)mode;


//创建textField,无图片，有密码。
+(UITextField *)createPasTextFieldFrame:(CGRect )frame backgroundColor:(UIColor*)color secureTextEntry:(BOOL)secureTextEntry placeholder:(NSString *)str pColor:(UIColor*)pcolor clearsOnBeginEditing:(BOOL)clearsOnBeginEditing font:(CGFloat)font;

+ (UILabel *)creatLabelWithFrame:(CGRect)frame text:(NSString *)text textColor:(UIColor*)textColor textAlignment:(NSTextAlignment)textAlignment font:(CGFloat)font backGroundColor:(UIColor*)Bcolor;

+ (UILabel *)CreatLabelWithFrame:(CGRect)frame text:(NSString *)text textColor:(UIColor*)textColor font:(CGFloat)font;
//创建button

//+ (UIButton *)creatButtonWithFrame:(CGRect)frame target:(id)target sel:(SEL)sel tag:(NSInteger)tag image:(NSString *)name title:(NSString *)title titleColor:(UIColor *)color backGroundColor:(UIColor*)Color font:(CGFloat)font layer:(BOOL)Mlayer cornerRadius:(CGFloat)Radius;

+(UIButton *)CreateBtnFrame:(CGRect)frame title:(NSString *)title titleColor:(UIColor *)color target:(id)target action:(SEL)action;

+(UIButton *)CReateBtnFrame:(CGRect)frame bgImageName:(NSString *)bgImageName target:(id)target action:(SEL)action;

+ (UIButton *)CREeatButtonWithFrame:(CGRect)frame target:(id)target sel:(SEL)sel title:(NSString *)title titleColor:(UIColor *)color backGroundColor:(UIColor*)Color font:(CGFloat)font layer:(BOOL)Mlayer cornerRadius:(CGFloat)Radius;

//创建imageview
+ (UIImageView *)creatImageViewFrame:(CGRect)frame image:(UIImage*)image;

+ (UIImageView *)creatImageViewFrame:(CGRect)frame imageName:(NSString*)imageName layer:(BOOL)Mlayer cornerRadius:(CGFloat)Radius;
//创建view ，指定背景色
+ (UIView*)createViewFrame:(CGRect)frame backgroundColor:(UIColor*)color layer:(BOOL)Mlayer cornerRadius:(CGFloat)Radius;

+ (UIView*)createViewFrame:(CGRect)frame backgroundColor:(UIColor*)color;

+ (void)changeLineSpaceForLabel:(UILabel *)label WithSpace:(float)space;
+ (CGFloat)getWidthWithTitle:(NSString *)title font:(UIFont *)font;
@end
